package com.example.test.advice.第三章_类_对象_方法.建议41_让多继承成为现实;

public class Daughter extends MotherImpl implements Father{

    @Override
    public int kind() {
        return super.kind()+1;
    }

    @Override
    public int strong() {
        return new FatherSpecial().strong();
    }

    private class FatherSpecial extends FatherImpl{

        //女儿的强壮指数-1
        @Override
        public int strong() {
            return super.strong()-1;
        }
    }
}
